home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / lib / python2.6 / dist-packages / ecryptfs-utils / libecryptfs.pyo (.txt) < prev   
Encoding:
Python Compiled Bytecode  |  2009-06-04  |  2.3 KB  |  65 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.6)
  3.  
  4. import _libecryptfs
  5. import new
  6. new_instancemethod = new.instancemethod
  7.  
  8. try:
  9.     _swig_property = property
  10. except NameError:
  11.     pass
  12.  
  13.  
  14. def _swig_setattr_nondynamic(self, class_type, name, value, static = 1):
  15.     if name == 'thisown':
  16.         return self.this.own(value)
  17.     method = class_type.__swig_setmethods__.get(name, None)
  18.     if method:
  19.         return method(self, value)
  20.     if not static or hasattr(self, name):
  21.         self.__dict__[name] = value
  22.     else:
  23.         raise AttributeError('You cannot add attributes to %s' % self)
  24.     return method
  25.  
  26.  
  27. def _swig_setattr(self, class_type, name, value):
  28.     return _swig_setattr_nondynamic(self, class_type, name, value, 0)
  29.  
  30.  
  31. def _swig_getattr(self, class_type, name):
  32.     if name == 'thisown':
  33.         return self.this.own()
  34.     method = class_type.__swig_getmethods__.get(name, None)
  35.     if method:
  36.         return method(self)
  37.     raise AttributeError, name
  38.  
  39.  
  40. def _swig_repr(self):
  41.     
  42.     try:
  43.         strthis = 'proxy of ' + self.this.__repr__()
  44.     except:
  45.         strthis = ''
  46.  
  47.     return '<%s.%s; %s >' % (self.__class__.__module__, self.__class__.__name__, strthis)
  48.  
  49. import types
  50.  
  51. try:
  52.     _object = types.ObjectType
  53.     _newclass = 1
  54. except AttributeError:
  55.     
  56.     class _object:
  57.         pass
  58.  
  59.     _newclass = 0
  60.  
  61. del types
  62. ecryptfs_passphrase_blob = _libecryptfs.ecryptfs_passphrase_blob
  63. ecryptfs_passphrase_sig_from_blob = _libecryptfs.ecryptfs_passphrase_sig_from_blob
  64. ecryptfs_add_blob_to_keyring = _libecryptfs.ecryptfs_add_blob_to_keyring
  65.